
import javax.swing.*;
import javax.swing.GroupLayout.Alignment;

import java.awt.*;
import java.awt.event.*;
public class window {
	
	
	public window(){
		JFrame frame = new JFrame(" lab2_KN45_Shershun_Lyubomyr");
		frame.getContentPane().setLayout(new BorderLayout());
		frame.setSize(700,500);
		
		
		MyPanel panel=new MyPanel();
		panel.setVisible(true);
		
		frame.add(panel, BorderLayout.CENTER);
		
		panel.addMouseListener(panel);
		frame.addKeyListener(panel);
			
		frame.setVisible(true);
		frame.setResizable(true);
	}
}
